/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Action;

import Entity.Admin;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Cyrax
 */
@Local
public interface AdminSessionBeanLocal {

    String Sayhello(String name);

    List<Admin> listAllAdmin();

    boolean CheckUserName(Admin ad);

    void updateAdmin(String username, String pasword, String fullname, String address, String phone, String email, Date birthdat);

    void deleteAdmin(Admin ad);

    void update(Admin ad);

    void addAdmin(Admin ad);

    List<Admin> searchAdmin(String userName);

    boolean checkUserAdmin(String username);

    Boolean checkEmail(String email);

    public void updateAd(java.lang.String username, java.lang.String pasword, java.lang.String fullname, java.lang.String address, java.lang.String phone, java.lang.String email, java.util.Date birthdat);
}
